package com.situ.vivamarket.service;

import com.github.pagehelper.Page;
import com.situ.vivamarket.model.Order;
import com.situ.vivamarket.model.front.OrderItem;
import com.situ.vivamarket.model.search.OrderSearchBean;

import java.util.List;

public interface OrderService {

    public boolean checkout(Order order, Integer[] ids);

    public boolean insertOrderItem(OrderItem oi);

    public Order findById(Integer id);

    List<Order> getAllOrders(OrderSearchBean osb, Page<?> page);

    int deleteByIds(Integer[] ids);

//    提交订单补充订单其他内容，收获信息，总价，备注,也可作为后台信息修改
    boolean patch(Order order);

    Order findByOrderNo(String orderNo);

    Order findLastCreatedOrderByMemberId(Integer memberId);

    List<Order> findByMemberId(Integer memberId);


    //  现在是俩了，根据address的地址查找全名
    String findFullNameById(Integer id);

}
